package mrsimulator

import actors.Actor

/**
 * Created with IntelliJ IDEA.
 * User: codefish
 * Date: 11/8/12
 * Time: 9:36 PM
 * To change this template use File | Settings | File Templates.
 */
class MapTaskInProgress (t: Task, tt: TaskTrackerSimulator) extends Actor{
    val task = t
    val taskTracker = tt
    val duration = t.getTaskInfo.getCompletionTime
    val outputSize = t.getTaskInfo.getOutputSize

    def act() {
        Thread.sleep(duration)
        taskTracker ! TaskDone(task)
    }
}
